package book;

public class BookList {
    private Book[] books;
    private int usedSize;//记录当前书架放了几本书
    public BookList(){
        this.books = new Book[10];
        this.books[0] = new Book("三国演义","罗贯中","小说",10);
        this.books[1] = new Book("水浒传","施耐庵","小说",11);
        this.books[2] = new Book("红楼梦","曹雪芹","小说",12);
        this.books[3] = new Book("西游记","吴承恩","小说",13);
        this.usedSize = 4;
    }

    public int getUsedSize() {
        return usedSize;
    }

    public void setUsedSize(int usedSize) {
        this.usedSize = usedSize;
    }
    public Book getBooks(int pos){
        return books[pos];
    }
    public void setBooks(Book book,int pos){
        books[pos] = book;
    }
    public void delBooks(String name){

    }
}
